<?php

if (!defined('BASEPATH'))
  exit('No direct script access allowed');


class Accept extends CI_Model {

	var $_table_name = 'accept';

	public function __construct() {
    	$this->load->database();
  	}

  	public function is_accept($comment_id){

  		$this->db->select('*');
  		$this->db->from($this->_table_name);

  		$this->db->where('comment_id', $comment_id);
  		$query = $this->db->get();

      return $query->num_rows();
  	}

}

